<div class="search">
  <input type="text" id="text" [(ngModel)]="history"><button type="button" (click)="search()">搜索</button>
  <hr>
  <ul>
    <li *ngFor="let item of historyList let key=index">{{item}}-----   <button (click)="delete(key)">X</button></li>
  </ul>
</div>